<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Multiple CSS Animations</title>
    <style>
        .div {
            width: 100px;
            height: 100px;
            margin-left: 200px;
            display: inline-block;
            /* border-radius: 50%; */
        }
        .img1 {
            width: 400px;
            border-radius: 50%;
            transition: all 3s;
        }
        .img2 {
            width: 500px;
            border-radius: 5px;
            transition: all 3s;
        }
        .img3 {
            width: 500px;
            border-radius: 10px;
            transition: all 3s;
        }
        .rotate {
            animation: rotate 2s infinite linear;
        }

        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
        .scale {
            animation: scale 1.5s infinite alternate;
        }

        @keyframes scale {
            from {
                transform: scale(1);
            }
            to {
                transform: scale(1.2);
            }
        }
        .fade {
            animation: fade 2s alternate infinite ease-in-out;
        }

        @keyframes fade {
            from {
                opacity: 1;
            }
            to {
                opacity: 0.3;
            }
        }
    </style>
</head>
<body>
    <div class="div rotate">
        <img src="../day7-30/img/Q宝04.jpg" class="img1">
    </div>
    <div class="div scale">
        <img src="../day7-30/img/Q宝04.jpg" class="img2">
    </div>
    <div class="div fade">
        <img src="../day7-30/img/Q宝04.jpg" class="img3">
    </div>
</body>
</html>